-- GENERATED SPELL FOR [Wrath Hound] --


function spell0_20557(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(22911,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20557', 2258, 1)
end

function spell1_20557(pUnit, Event) --@Double Breath,n/a--
pUnit:FullCastSpellOnTarget(36406,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20557', 4500, 1)
end

function Sorts_20557(pUnit, Event)
local choix_sorts_20557 = math.random(0, 1)
if choix_sorts_20557 == 0 then
pUnit:RegisterEvent('spell0_20557', 1, 1)
end
if choix_sorts_20557 == 1 then
pUnit:RegisterEvent('spell1_20557', 1, 1)
end
end

function mob20557_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20557', math.random(1500, 3000), 1)
end

function mob20557_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20557_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20557_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20557, 1, 'mob20557_Action')
RegisterUnitEvent(20557, 2, 'mob20557_Leave')
RegisterUnitEvent(20557, 3, 'mob20557_Kill')
RegisterUnitEvent(20557, 4, 'mob20557_Die')
